package cn.maxxieyi.aichatbot.service;

import cn.maxxieyi.aichatbot.dto.AiChatRequest;
import cn.maxxieyi.aichatbot.dto.AiChatResponse;
import com.alibaba.fastjson.JSONObject;

/**
 * AI接口
 */
public interface AiApiService {

    /**
     * 文本对话接口
     * @param aiChatRequest
     * @return
     */
    AiChatResponse chatText(AiChatRequest aiChatRequest) ;

    /**
     * 构建请求参数
     * @param params
     * @return
     */
    AiChatRequest buildChatRequest(JSONObject params);
}
